﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DeepHash.Document
{
    /// <summary>
    /// Represents a folder/directory
    /// </summary>
    [System.Xml.Serialization.XmlRoot("record")]
    public class FolderVerificationRecord : VerificationRecord
    {
        private List<FolderVerificationRecord> _folders = new List<FolderVerificationRecord>();
        
        /// <summary>
        /// Collection of child folders
        /// </summary>
        [System.Xml.Serialization.XmlElement("folder")]
        public List<FolderVerificationRecord> Folders
        {
            get { return _folders; }
        }

        private List<FileVerificationRecord> _files = new List<FileVerificationRecord>();
        /// <summary>
        /// Collection of files in this folder
        /// </summary>
        [System.Xml.Serialization.XmlElement("file")]
        public List<FileVerificationRecord> Files
        {
            get { return _files; }
        }
    }
}
